package cn.bs.busuo.front.content.dao.persist.mapper;

import cn.bs.busuo.front.content.pojo.entity.ContentHotelArticleDetail;
import cn.bs.busuo.front.content.pojo.vo.ContentHotelArticleDetailByIdVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author: Feng
 * @since: 2023/12/7
 */
@Repository
public interface UserHotelArticleDetailMapper extends BaseMapper<ContentHotelArticleDetail> {
    //删除自己的酒店文章(修改为不显示)
    int updateByHotelId(Long id);
    //查看酒店文章详情
    ContentHotelArticleDetailByIdVO selectHotelArticleDetailById(Long id);
    //增加点击量
    void increaseClickCount(Long id);
    //查看酒店文章详情实体类
    ContentHotelArticleDetail selectHotelArticleDetail(Long hotelArticleId);
    //修改酒店文章详情
    int updateHotelArticleDetail(String detail,Long id);
}
